import { myFlat, myForEach, myMap, myFilter, myReduce, myFill, myIncludes, myJoin } from "./function";

/**初始化，在里面给原型进行挂载函数，让test文件中能够使用。 如果出现ts报错，就打开global.d.ts文件即可*/
function init() {
    Array.prototype.myFlat = myFlat
    Array.prototype.myForEach = myForEach;
    Array.prototype.myMap = myMap;
    Array.prototype.myFilter = myFilter;
    Array.prototype.myReduce = myReduce;
    Array.prototype.myFill = myFill;
    Array.prototype.myIncludes = myIncludes;
    Array.prototype.myJoin = myJoin;
    [].find
}
export default init
